findIsInstance

inline fun <T : Any> Array<*>.findIsInstance(check: (T) -> Boolean = { true }): T?(source)

Finds the first T element of this array that satisfies the check, returning null if nothing was found.


inline fun <T : Any> Iterator<*>.findIsInstance(check: (T) -> Boolean = { true }): T?(source)

Finds the first T element of this iterator that satisfies the check, returning null if nothing was found.


inline fun <T : Any> Iterable<*>.findIsInstance(check: (T) -> Boolean = { true }): T?(source)

Finds the first T element of this iterable that satisfies the check, returning null if nothing was found.


inline fun <T : Any> Sequence<*>.findIsInstance(check: (T) -> Boolean = { true }): T?(source)

Finds the first T element of this sequence that satisfies the check, returning null if nothing was found.